<?php

class MY_Controller extends CI_Controller {
	public function __construct() {
		parent::__construct();
	}
	
	public function isAjax() {
		return (isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest');
	}
}
